// 书单的类型

class BookListType {
  int id;
  String name;

  static List<BookListType> fromJson(dynamic data){
    List<BookListType> _list = [];
    data.forEach((d){
      BookListType bkt = BookListType();
      bkt.id   = d["id"];
      bkt.name = d["name"];
      _list.add(bkt);
    });
    return _list;
  }

  @override
  String toString() {
    return 'BookListType{id: $id, name: $name}';
  }


}